package com.office.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.office.common.annotation.Excel;
import com.office.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 消息管理对象 sys_news
 *
 * @author ruoyi
 * @date 2024-07-05
 */
public class SysNews extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 消息id
     */
    private Long newsId;

    /**
     * 消息标题
     */
    @Excel(name = "消息标题")
    private String newsName;

    /**
     * 消息内容
     */
    @Excel(name = "消息内容")
    private String newsContent;

    /**
     * 发送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date newsTime;

    /**
     * 消息接收端
     */
    @Excel(name = "消息接收端")
    private String newsApp;

    /**
     * 消息是否已读  0未读 1已读
     */
    @Excel(name = "消息是否已读  0未读 1已读")
    private Long newsRead;

    private int newRead;

    public int getNewRead() {
        return newRead;
    }

    public void setNewRead(int newRead) {
        this.newRead = newRead;
    }

    public Long getNewsId() {
        return newsId;
    }

    public void setNewsId(Long newsId) {
        this.newsId = newsId;
    }

    public String getNewsName() {
        return newsName;
    }

    public void setNewsName(String newsName) {
        this.newsName = newsName;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public Date getNewsTime() {
        return newsTime;
    }

    public void setNewsTime(Date newsTime) {
        this.newsTime = newsTime;
    }

    public String getNewsApp() {
        return newsApp;
    }

    public void setNewsApp(String newsApp) {
        this.newsApp = newsApp;
    }

    public Long getNewsRead() {
        return newsRead;
    }

    public void setNewsRead(Long newsRead) {
        this.newsRead = newsRead;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("newsId", getNewsId())
                .append("newsName", getNewsName())
                .append("newsContent", getNewsContent())
                .append("newsTime", getNewsTime())
                .append("newsApp", getNewsApp())
                .append("newsRead", getNewsRead())
                .toString();
    }
}
